<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      padding: 0;
      margin: 0;
    }

    .input-wrap {
      display: flex;
      align-items: center;
    }

    input[type='range'] {
      width: 300px;
      height: 20px;
      border-radius: 20px;
      -webkit-appearance: none;
      background-color: pink;
      outline: none;
    }

    input[type='range']::-webkit-slider-thumb {
      -webkit-appearance: none;
      background-color: pink;
      width: 30px;
      height: 30px;
      background: pink;
      border-radius: 50%;
    }

    input[type='range']:active::-webkit-slider-thumb {
      background-color: red;
    }

    span {
      position: relative;
      display: inline-block;
      width: 60px;
      height: 30px;
      text-align: center;
      line-height: 30px;
      background-color: pink;
      margin-right: 5px;
    }

    span::before {
      position: absolute;
      content: '';
      right: -10px;
      top: calc(50% - 5px);
      width: 0;
      height: 0;
      border: 5px solid transparent;
      border-left-color: pink;
    }
  </style>
</head>

<body>
  <div class="input-wrap">
    <span>10</span> <input type="range" value="10" min="0" max="100">
  </div>

  <script>
    const input = document.querySelector('input');
    const span = document.querySelector('span')
    input.oninput = function () {
      span.innerHTML = this.value
    }

  </script>
</body>

</html>